import { Component, EventEmitter, Output } from '@angular/core';

@Component({
  selector: 'app-srm-sidebar',
  templateUrl: './srm-sidebar.component.html',
  styleUrl: './srm-sidebar.component.scss'
})
export class SrmSidebarComponent {
  sidebarRightVisible: boolean = false;
  item?: SrmConfig;
  @Output()
  onHide: EventEmitter<void> = new EventEmitter();

  onShow(item: SrmConfig) {
    console.log("Srm", "onShow");
    this.item = item;
    this.sidebarRightVisible = true;
  }
  onSidebarHide() {
    this.onHide.next();
  }
}
